import Vue from "vue";
import Vuex from "vuex"

Vue.use(Vuex)
const actions = {}
const mutations = {
    setUser(state, value) {
        state.user = value
    },
    setStatus(state, value) {
        state.user.status = value
    },
    setEmail(state, value) {
        state.user.email = value
    },
    setUsername(state, value){
        state.user.username = value
    }
}
const state = {
    user: {id:""}
}

export default new Vuex.Store({
    actions,
    mutations,
    state
})